//数据库配置
export const DB_CONFIG = {
  host: '127.0.0.7',
  user: 'keke',
  password: '123123',
  port: 3306,
  database: 'stu',
  logSql: true,
  charset: 'utf8mb4',
}

// 邮件配置
export const MAIL_CONFIG = {
  host: 'smtp.163.com',//pop、smtp、imap
  port: 465,
  secure: true,
  auth: {
    user: 'keke7426e@163.com',
    pass: 'AGPFUXIMXWUYRZQE'
  }
}

// 邮件署名
export const SEND_NAME = '测试昵称'

// 管理员身份验证
export const admVe = false

// 是否输出日志[控制台]
export const OPEN_LOG = false

// 是否保存日志[到数据库]
export const SAVE_LOG = false

// 启动端口
export const START_PORT = 6688

// 异常提示
export const SQL_ERROR = { code:500,msg:'数据库异常' }
export const RES_ERROR = msg => ({ code:500,msg })
